﻿using System;
using System.Runtime.Serialization;
using System.Xml.Linq;

namespace NCMIS.ObjectModel.MetaData
{
    [KnownType(typeof(CmisChoiceUri))]
    [KnownType(typeof(CmisChoiceString))]
    [KnownType(typeof(CmisChoiceHtml))]
    [KnownType(typeof(CmisChoiceDecimal))]
    [KnownType(typeof(CmisChoiceDateTime))]
    [KnownType(typeof(CmisChoiceInteger))]
    [KnownType(typeof(CmisChoiceId))]
    [KnownType(typeof(CmisChoiceBoolean))]
    [DataContract(Name = "cmisChoice", Namespace = CmisNs.Cmis)]
    public class CmisChoice
    {
        [DataMember(Name = "displayName")]
        public string DisplayName
        {
            get;
            set;
        }

        public virtual XElement ToXElement()
        {
            return null;
        }
    }
}
